package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author ybl
 * @version 1.9
 * @date 2021/5/17 20:34
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {

  // 根据hoscode ,depcode查找科室
  Department getDepartmentByHoscodeAndDepcode(String hoscode,String depcode);
}
